package com.misboot.document.model;

import cn.ewsd.common.model.MCoreBase;
import org.apache.commons.lang.builder.ReflectionToStringBuilder;

/**
 * @ClassName OssObject
 * @Description 阿里云存储对象
 * @Author 宋景民<songjingmin@zuoyoutech.com>
 * @Date 2019/4/26 13:50
 * @Version 1.0
 */
public class OssObject extends MCoreBase{
	private String objectName ; // 对象的名称
	private String keyPrefix; //前缀
	private String size; // 对象大小
	private String updateTime; // 更新时间
	private String key; // 路径名称
	private String bucketName ; // 容器的名称
	private String acl ; // 文件的权限 Default Private .PublicRead PublicReadWrite
	private String url ; // 获取文件的url地址
	private Boolean isFile; //  对象是文件或者文件夹
	private String storageClass; // 有效值：Standard、IA、Archive
	private String endpoint;// 区域节点


	public OssObject() {
	}


	public String getEndpoint() {
		return endpoint;
	}

	public void setEndpoint(String endpoint) {
		this.endpoint = endpoint;
	}
	public String getStorageClass() {
		return storageClass;
	}

	public void setStorageClass(String storageClass) {
		this.storageClass = storageClass;
	}

	public Boolean getIsFile() {
		return isFile;
	}

	public void setIsFile(Boolean isFile) {
		this.isFile = isFile;
	}
	public String getObjectName() {
		return objectName;
	}

	public void setObjectName(String objectName) {
		this.objectName = objectName;
	}

	public String getKeyPrefix() {
		return keyPrefix;
	}

	public void setKeyPrefix(String keyPrefix) {
		this.keyPrefix = keyPrefix;
	}

	public String getSize() {
		return size;
	}

	public void setSize(String size) {
		this.size = size;
	}

	public String getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getBucketName() {
		return bucketName;
	}

	public void setBucketName(String bucketName) {
		this.bucketName = bucketName;
	}

	public String getAcl() {
		return acl;
	}

	public void setAcl(String acl) {
		this.acl = acl;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	@Override
	public String toString() {
		return  ReflectionToStringBuilder.toString(this);
	}
}
